#include <iostream>
#include <cstdlib>
#include <ctime>
#include "Rational.h"

using std::cout;
using std::endl;

int main(int argc, const char *argv[])
{
    Rational a (7, 3);
    Rational b (1, 3);

    cout << a << " + " << b << " = " << a + b << endl;
    cout << a << " - " << b << " = " << a - b << endl;
    cout << a << " * " << b << " = " << a * b << endl;
    cout << a << " / " << b << " = " << a / b << endl;

    cout << '\n';

    cout << a << (a > b ? " > " : " <= " ) << b << endl;
    cout << a << (a < b ? " < " : " >= " ) << b << endl;
    cout << a << (a >= b ? " >= " : " < " ) << b << endl;
    cout << a << (a <= b ? " <= " : " > " ) << b << endl;
    cout << a << (a == b ? " == " : " != " ) << b << endl;
    cout << a << (a != b ? " != " : " == " ) << b << endl;

    return 0;
}
